package com.powergisol.gis.service;

import com.powergisol.gis.config.ServiceFeignConfig;
import com.powergisol.gis.service.impl.FallBackServiceImpl;
import com.powergisol.gis.util.Result;
import com.powergisol.gis.vo.TabServiceVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * Date: 2019/8/6  18:40
 * Description:
 */
@FeignClient(value = "resource-service",fallback = FallBackServiceImpl.class,configuration = ServiceFeignConfig.class)
public interface FallBackService {

    @RequestMapping(value = "service/remote/getSynService",method = RequestMethod.GET)
    List<Map<String,Object>> getSynService();

    @RequestMapping(value = "service/remote/isServiceNameDouble",method = RequestMethod.POST)
    Result remoteServiceNameDouble(@RequestParam(value = "name")String name);

    @RequestMapping(value = "service/remote/releaseTabService",method = RequestMethod.POST)
    Result remoteReleaseTabService(@RequestParam(value = "serviceType")Integer serviceType,
                                   @RequestParam(value = "changeType")String changeType,
                                   @RequestParam(value = "assinSuffixName")String assinSuffixName,
                                   @RequestParam(value = "currentUserId")Integer currentUserId,
                                   @RequestParam(value = "currentUserName")String currentUserName,
                                   @RequestParam(value = "name")String name,
                                   @RequestParam(value = "type")Integer type,
                                   @RequestParam(value = "keyword")String keyword,
                                   @RequestParam(value = "description")String description,
                                   @RequestParam(value = "fileUrl")String fileUrl,
                                   @RequestParam(value = "startLevel")String startLevel,
                                   @RequestParam(value = "endLevel")String endLevel,
                                   @RequestParam(value = "uuid")String uuid);

}

